/* Download files */
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )

/* Includes */
include( "shared.lua" )

/* An entity entered the zone */
function ENT:StartTouch( entity )

	/* Check if the entity is valid */
	if not entity or not IsValid( entity ) then return end
	
	/* A player enters the zone */
	if entity:IsPlayer() then
	
		/* Debug output */
		Msg( "<SENT - " .. tostring(self.PrintName ) .. "> " .. entity:Nick() .. " just entered the area\n" )
	end
end

/* An entity exited the zone */
function ENT:EndTouch( entity )

	/* Check if the entity is valid */
	if not entity or not IsValid( entity ) then return end
	
	/* A player enters the zone */
	if entity:IsPlayer() then
	
		/* Debug output */
		Msg( "<SENT - " .. tostring( self.PrintName ) .. "> " .. entity:Nick() .. " just left the area\n" )
	end
end